Initialise correct GPMC WAITx irq for AM33xx
authorMark Jackson <[email protected]>
Thu, 21 Feb 2013 02:49:38 +0000 (02:49 +0000)
committerTom Rini <[email protected]>
Fri, 22 Mar 2013 14:57:00 +0000 (10:57 -0400)
Currently WAIT0 irq is reset and then WAIT1 irq is enabled.
Fix it such that WAIT0 irq is enabled instead.

Signed-off-by: Mark Jackson <[email protected]>
Acked-by: Peter Korsgaard <[email protected]>
arch/arm/cpu/armv7/am33xx/mem.c

index b8f54abae2f99ada121803785939b8ecae5a0a56..b86b0ded3fdec651df6d3a346982b900c04d3441 100644 (file)
@@ -83,7 +83,7 @@ void gpmc_init(void)
        /* global settings */
        writel(0x00000008, &gpmc_cfg->sysconfig);
        writel(0x00000100, &gpmc_cfg->irqstatus);
-       writel(0x00000200, &gpmc_cfg->irqenable);
+       writel(0x00000100, &gpmc_cfg->irqenable);
        writel(0x00000012, &gpmc_cfg->config);
        /*
         * Disable the GPMC0 config set by ROM code